Skip to content

VectorIndex Policy[No Release]: Adds Support for QuantizerType in IndexingPolicy#5502

Merged
microsoft-github-policy-service[bot] merged 9 commits into
masterfrom
users/aavasthy/vector_quantizertype
Dec 8, 2025
Merged

VectorIndex Policy[No Release]: Adds Support for QuantizerType in IndexingPolicy#5502
microsoft-github-policy-service[bot] merged 9 commits into
masterfrom
users/aavasthy/vector_quantizertype

Conversation

@aavasthy
Copy link
Copy Markdown
Contributor

@aavasthy aavasthy commented Nov 17, 2025

Pull Request Template

Description

  • Updated direct package version as this PR needed some code references from shared files.

  • Add a new field "quantizerType": "product/spherical" to vector index definition in indexing policy.

Example:

    "vectorIndexes": [
      {
        "path": "/vector1",
        "type": "diskANN",
        "quantizerType": "product"
        "quantizationByteSize": 4,
        "indexingSearchListSize": 50
      }
    ],

Type of change

Testing against a live account that has Vector Search for NoSQL API feature enabled:

  • Ran e2e test and created a container with
      Collection<Cosmos.VectorIndexPath> vectorIndexes = new Collection<Cosmos.VectorIndexPath>
{
   new Cosmos.VectorIndexPath
   {
       Path = "/embedding",
           Type = Cosmos.VectorIndexType.DiskANN,
       QuantizerType = Cosmos.QuantizerType.Product
   }
};
       properties.IndexingPolicy.VectorIndexes = vectorIndexes;

Checked in portal and it has the quantizer type value getting reflected as product:
image
And checked with quantizer type as Spherical
image

Please delete options that are not relevant.

  • New feature (non-breaking change which adds functionality)

Closing issues

To automatically close an issue: closes #IssueNumber

Comment thread Microsoft.Azure.Cosmos/src/Resource/Settings/QuantizerType.cs
@aavasthy aavasthy added the auto-merge Enables automation to merge PRs label Dec 4, 2025
Comment thread Directory.Build.props
@aavasthy aavasthy removed the auto-merge Enables automation to merge PRs label Dec 4, 2025
@kundadebdatta kundadebdatta added auto-merge Enables automation to merge PRs vector-similarity labels Dec 8, 2025
This was referenced Apr 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

auto-merge Enables automation to merge PRs vector-similarity

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

4 participants